# locust777
//结构体2，输入一个姓名，年龄，相别，手机号码的结构体
//struct Student
//{
//char name[20];
//int age;
//char sex[10];
//char telephone[22];
};//注意struct中;别忘记
//
////第一种方法1
//#include<stdio.h>
//int main()
//{
//	struct Student s = {"zhangsan",20,"nan","12345678911"};
//	printf("%s %d %s %s",s.name,s.age,s.sex,s.telephone);
//	scanf("%d",s);
//return 0;
//}

//第二种2
//#include<stdio.h>
//void print(struct Student *ps)//是print,不是printf
//{
//	printf("%s %d %s %s\n",(*ps).name,(*ps).age,(*ps).sex,(*ps).telephone);
//}

//int main()
//{
//	struct Student s = {"zhangsan",20,"nan","12345678999"};
//	print(&s);//是print，不是printf
//	scanf("%d",s);
//return 0;
//}
//
//第三种3 ->
//#include<stdio.h>
//void print(struct Student *ps)
//{
//	printf("%s %d %s %s\n",ps->name,ps->age,ps->sex,ps->telephone);
//}
//int main()
//{
//	struct Student s = {"zhangsan",20,"nan","1234567865"};
//	print(&s);
//	scanf("%d",s);
//return 0;
//}

